package com.whiteblue.model;

import com.whiteblue.tool.Model;

import java.util.List;

/**
 * Created by WhiteBlue on 15/4/11.
 */
public class Sort extends Model<Sort> {
    public static final Sort dao = new Sort();

    public static final String SORT_CACHE="sort";

    public Sort() {
        super(SORT_CACHE);
    }

    public Sort getById(int Id){
        return loadModel(Id);
    }

    public List<Sort> listAll(){
        return loadModelList(dao.find("select id from b_sort"));
    }
}
